wayland: Ack the configure immediately
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 13 May 2014 20:21:11 +0000 (16:21 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 13 May 2014 20:21:57 +0000 (16:21 -0400)
gdk/wayland/gdkwindow-wayland.c

index 9a66ad069de123b2a5281a7ddb2b3dfb7921e261..87fa392a0598121a26f0149f2a8c30b1945f0833 100644 (file)
@@ -113,8 +113,6 @@ struct _GdkWindowImplWayland
 
   cairo_surface_t *cairo_surface;
 
-  int32_t next_attach_serial;
-
   gchar *title;
 
   /* Time of most recent user interaction. */
@@ -522,12 +520,6 @@ gdk_wayland_window_attach_image (GdkWindow *window)
   if (GDK_WINDOW_DESTROYED (window))
     return;
 
-  if (impl->next_attach_serial > 0)
-    {
-      xdg_surface_ack_configure (impl->xdg_surface, impl->next_attach_serial);
-      impl->next_attach_serial = 0;
-    }
-
   /* Attach this new buffer to the surface */
   wl_surface_attach (impl->surface,
                      _gdk_wayland_shm_surface_get_wl_buffer (impl->cairo_surface),
@@ -852,7 +844,7 @@ xdg_surface_configure (void               *data,
     }
 
   _gdk_set_window_state (window, new_state);
-  impl->next_attach_serial = serial;
+  xdg_surface_ack_configure (xdg_surface, serial);
 }
 
 static void